﻿using System;
using System.Collections.Generic;
using Microsoft.Owin.Extensions;
using Microsoft.Owin.Hosting;
using Owin;

namespace distpm
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            var url = "http://*:8283";

            using (WebApp.Start<Startup>(url))
            {
                Console.WriteLine("Running on {0}", url);
                Console.WriteLine("Press enter to exit");
                Console.ReadLine();
            }
        }
    }
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            app.UseNancy();
            app.UseStageMarker(PipelineStage.MapHandler);
        }
    }
}